package com.service.impl;

import java.util.List;

import com.base.BaseServiceImpl;
import com.dao.VoteDao;
import com.entity.Vote;
import com.entity.VoteUser;
import com.service.VoteService;
import com.util.Page;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("voteservice")
public class VoteServiceImpl extends BaseServiceImpl<Vote> implements VoteService {

	private VoteDao vd;
	@Resource(name="voteDaoImpl")
	public void setVd(VoteDao vd) {
		super.setBd(vd);
		this.vd = vd;
	}
	@Override
	public Page getVoteExcludeCurrUser(int uid,Page p) {
		return vd.getVoteExcludeCurrUser(uid,p);
	}
	@Override
	public Page getVoteByType(int vtid,Page p) {
		return vd.getVoteByType(vtid, p);
	}
}

